import Vue from "vue";
import App from "./App.vue";
import router from "./route";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import axios from "./http";
import * as filters from "./utils/filter";
// import VueQuillEditor from 'vue-quill-editor'
Vue.use(ElementUI);

// 处理跨域问题
Vue.prototype.$api = axios;

// register global utility filters
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]);
});
// 富文本
// Vue.use(VueQuillEditor)
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
